#include "httpmgr.h"
#include "global.h"
Httpmgr::~Httpmgr()
{

}
Httpmgr::Httpmgr()
{

}

void Httpmgr::PostHttpReq(QUrl url, QJsonObject json, ReqId reg_id, Modules mod)
{
    QByteArray data = QJsonDocument(json).toJson();
    QNetworkRequest request(url);
    request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
    request.setHeader(QNetworkRequest::ContentLengthHeader, QByteArray::number(data.length()));
    auto self = shared_from_this();
    QNetworkReply * reply = _manger.post(request, data);
}
